package com.lbs.jiepiaisi.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * 时间：2017/9/8 14:27
 * 作用：设备实体类信息
 */

public class EquipmentEntity implements Serializable {
    public EquipmentEntity() {
        this.result = new Result();
    }

    //当前状态
    private int code;
    //当前返回数据的页数
    private int page;
    //
    private String status;

    public int getCode() {
        return code;
    }
    public void setCode(int code) {
        this.code = code;
    }

    public String getStatus() {
        return status;
    }
    public void setStatus(String status) { this.status = status; }

    //对应的result对象
    private Result result;

    public Result getResult() {
        return result;
    }
    public void setResult(Result result) {
        this.result = result;
    }

    public int getPage() {
        return page;
    }
    public void setPage(int page) {
        this.page = page;
    }

    /**
     * 内部类
     */
    //对应result对象中的信息
    public static class Result implements Serializable{
        //数量
        private int count;
        //总数
        private String total ;
        //激活
        private String act;
        //在线
        private String ol;
        //未激活
        private String unact;
        //离线
        private String off;

        //对应的总items信息(JSONArrary)
        private List<Item> items;

        public Result() {
            this.count = 0;
            items = new ArrayList<>();
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }
        public List<Item> getItems() {
            return items;
        }

        public void setItems(List<Item> items) {
            this.items = items;
        }

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public String getAct() {
            return act;
        }

        public void setAct(String act) {
            this.act = act;
        }

        public String getOl() {
            return ol;
        }

        public void setOl(String ol) {
            this.ol = ol;
        }

        public String getUnact() {
            return unact;
        }

        public void setUnact(String unact) {
            this.unact = unact;
        }

        public String getOff() {
            return off;
        }

        public void setOff(String off) {
            this.off = off;
        }

        //对应的Items中单个item信息
        /**
         * 内部类
         */
        public static class Item implements Serializable{
            //合同号
            private String contractNo;
            //车牌号
            private String plateNum;
            //被赋予的值（可能是车架号/合同号/设备号/车主姓名）
            private String giveValue;
            //机主姓名
            private String ownerName;
            //设备编号
            private String eqNo;
            //设备型号
            private String eqModel;
            //对应单个result中Point信息
            private Point point;
            //设备状态
            private String status;
            //部门编码
            private String deptId;

            //Sim
            private String sim;
            //出厂时间
            private  String createTime;
            //到期时间
            private String expTime;
            //车主电话
            private String phone;
            //车主身份证号码
            private String owenerId;
            //车型
            private String vModel;
            //发动机号
            private String engineNo;
            //车架号
            private String vin;
            //是否展开
            private boolean isMore  = false;
            //时间
            private String cnStatus;

            public String getMark() {
                return mark;
            }

            public void setMark(String mark) {
                this.mark = mark;
            }

            private String mark;

            //当前位置
            private String installerPosition;

            public String getInstallerPosition() {
                return installerPosition;
            }

            public void setInstallerPosition(String installerPosition) {
                this.installerPosition = installerPosition;
            }

            public String getCnStatus() {
                return cnStatus;
            }

            public void setCnStatus(String cnStatus) {
                this.cnStatus = cnStatus;
            }

            public void setVin(String vin) {
                this.vin = vin;
            }

            public String getVin() {
                return vin;
            }

            public String getEngineNo() {
                return engineNo;
            }

            public void setEngineNo(String engineNo) {
                this.engineNo = engineNo;
            }

            public String getvModel() {
                return vModel;
            }

            public void setvModel(String vModel) {
                this.vModel = vModel;
            }

            public String getOwenerId() {
                return owenerId;
            }

            public void setOwenerId(String owenerId) {
                this.owenerId = owenerId;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public String getExpTime() {
                return expTime;
            }

            public void setExpTime(String expTime) {
                this.expTime = expTime;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public String getSim() {
                return sim;
            }

            public void setSim(String sim) {
                this.sim = sim;
            }

            public String getEqModel() {
                return eqModel;
            }

            public void setEqModel(String eqModel) {
                this.eqModel = eqModel;
            }

            public String getDeptId() {
                return deptId;
            }

            public void setDeptId(String deptId) {
                this.deptId = deptId;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }


            public String getContractNo() {
                return contractNo;
            }

            public void setContractNo(String contractNo) {
                this.contractNo = contractNo;
            }

            public String getPlateNum() {
                return plateNum;
            }

            public void setPlateNum(String plateNum) {
                this.plateNum = plateNum;
            }

            public String getGiveValue() {
                return giveValue;
            }

            public void setGiveValue(String giveValue) {
                this.giveValue = giveValue;
            }

            public String getOwnerName() {
                return ownerName;
            }

            public void setOwnerName(String ownerName) {
                this.ownerName = ownerName;
            }

            public String getEqNo() {
                return eqNo;
            }

            public void setEqNo(String eqNo) {
                this.eqNo = eqNo;
            }

            public Point getPoint() {
                return point;
            }

            public void setPoint(Point point) {
                this.point = point;
            }

            public boolean isMore() {
                return isMore;
            }

            public void setMore(boolean more) {
                isMore = more;
            }

            /**
             * 内部类
             */
            //存储经纬度
            public static class Point implements Serializable{
                //lat维度
                //lng经度
                private Double lat;//维度

                private Double lng;//经度

                private float roate;//旋转角度

                public String getPositionTime() {
                    return positionTime;
                }

                public void setPositionTime(String positionTime) {
                    this.positionTime = positionTime;
                }

                public String getPostType() {
                    return postType;
                }

                public void setPostType(String postType) {
                    this.postType = postType;
                }

                private String positionTime;//定位时间

                private String postType;//定位方式



                public Double getLat() {
                    return lat;
                }

                public void setLat(Double lat) {
                    this.lat = lat;
                }

                public Double getLng() {
                    return lng;
                }

                public void setLng(Double lng) {
                    this.lng = lng;
                }


                public float getRoate() {
                    return roate;
                }

                public void setRoate(float roate) {
                    this.roate = roate;
                }
            }
        }
    }
}
